GetProfileString(IniPath, Section, Entry)


Returns the value of an entry in an initialization file or an empty string if the value does not exist. An initialization file assigns values to configuration variables, also known as entries, that need to be set when the system boots, the operating system comes up, or an application starts. An initialization file is distinguished from other files by its .ini suffix, for example, boot.ini, Win32.ini, and setup.ini.

See also SetProfileString.

IniPath

Fully qualified path (drive, directory, filename, and extension) of the initialization file, for example, C:\boot.ini.

Section

The section of the initialization file from which you would like to extract information.

Entry

The name of the value that you would like to see.